package com.gzhu.knowledgeAdmin.repository;


import com.gzhu.knowledgeAdmin.entity.Recorder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * 录音员 dao
 * Integer 为主键类型
 */
@Repository(value = "recordersRepository")
public interface RecorderRepository extends JpaRepository<Recorder,Integer> {

    Recorder getRecorderByName(String name);

    List<Recorder> getRecorderByNameIn(Collection<String> names);
}
